<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_turnstiles.js此处编写
 -->
<template>
  <div>
    <view-grid
      ref="grid"
      :columns="columns"
      :detail="detail"
      :editFormFields="editFormFields"
      :editFormFileds="editFormFields"
      :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields"
      :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions"
      :table="table"
      :extend="extend"
    >
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/Mall_turnstiles.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "id",
        footer: "Foots",
        cnName: "入园预约",
        name: "Mall_turnstiles",
        url: "/Turnstiles/",
        sortName: "createDate",
      },
      extend: extend,
      editFormFields: {
        guest_name: "",
        mobile: "",
        idcls: "",
        ident: "",
        createDate: "",
        creator: "",
        createID: "",
        reserve_starttime: "",
        reserve_endtime: "",
        car_number: "",
        car_numbers: "",
      },
      editFormOptions: [
      [{field: "guest_name",title: "姓名",type: "text",disabled:true},{field: "gender",title: "性别",type: "select",dataKey: "gender", data: [],disabled:true },
      { field: "idcls",title: "证件类型",type: "text", dataKey: "certificate_type", data: [],disabled:true  },{field: "ident",title: "证件号",type: "text",disabled:true }],
      [{field: "mobile",title: "联系电话",type: "text",disabled:true},{field: "reasons",title: "进雪场事由(旅游/工作)",dataKey: "reasons", data: [] ,type: "select",disabled:true},
      { title: "入崇时间", type: "text",disabled:true},{field: "point_of_departure",title: "出发地点",type: "text",disabled:true}],
      [{field: "house_address",title: "目的地",type: "text",disabled:true},{field: "is_high_risk",title: "近7日是否有高、中、低风险地区旅居史",dataKey: "enables", data: [] ,type: "select",disabled:true},
      {field: "highRiskAddress",title:"近7日是否有高、中、低风险地区旅居史",type: "text",disabled:true}],
      [{field: "travelHistory",title: "近7日旅居史及途径地区",type: "textarea",disabled:true}],
      [{field: "tourCode",title: "行程码",type: "img",disabled:true},
      {field: "healthCode",title: "健康码",type: "img",disabled:true},
      {field: "nuclein", title: "48小时内核酸",type: "img",disabled:true}],
      [{field: "trafficMonitoring",title: "进崇交通卡口",dataKey: "Entrance", data: [] ,type: "select",disabled:true},
        {field: "car_number",title: "车牌号/车次/其他",type: "text",disabled:true},
        {field: "goType",title: "入崇交通工具",dataKey: "goType", data: [] ,type: "text",disabled:true}],
        [{field: "reserve_starttime",title: "预约开始时间",type: "text",disabled:true},
        {field: "reserve_endtime",title: "预约结束时间",type: "text",disabled:true}],
        [{field: "createDate",title: "创建时间",type: "text",disabled:true}],
      [{ title: "手机号码", field: "mobile", type: "phone" ,hidden:true},
       {title: "档案姓名", field: "guest_name",type: "text",hidden:true},],
      [{ title: "证件号", field: "ident", type: "text",hidden:true },
        {title: "证件类型",field: "idcls", type: "select",dataKey: "certificate_type",data: [],hidden:true},],
      [
          {
            title: "预约起止时间",
            field: "timeContainer",
            type: "datetime",
            range: true,
            colSize: 12,hidden:true
          },
        ],
        [
          {
            title: "预约开始时间",
            field: "reserve_starttime",
            type: "datetime",
            hidden: true,hidden:true
          },
          {
            title: "预约结束时间",hidden:true,
            field: "reserve_endtime",
            type: "datetime",
            hidden: true,
          },
        ],
        [
          { title: "车牌前缀", field: "car_numbers" ,hidden:true},
          { title: "车牌号", field: "car_number", type: "text" ,hidden:true},
        ],
      ],
      searchFormFields: {
        guest_name: "",
        mobile: "",
        idcls: "",
        ident: "",
        createDate: "",
        reserve_starttime: "",
        reserve_endtime: "",
        car_number: "",
      },
      searchFormOptions: [
        [
     {
            title: "姓名",
            field: "guest_name",
            type: "text",
          },
          { title: "手机号码", field: "mobile", type: "like" },
          {
            title: "证件类型",
            field: "idcls",
            type: "select",
            dataKey: "certificate_type",
            data: [],
          },
          { title: "证件号", field: "ident", type: "like" },
        ],
        [
          {
            title: "车牌号",
            field: "car_number",
            type: "text",
          },
          {
            title: "创建时间",
            field: "createDate",
            type: "datetime",
          },
          {
            title: "预约时间",
            field: "reserve_starttime",
            type: "datetime",
            colSize:6
          },
        ],
      ],
      columns: [
        {
          field: "id",
          title: "id",
          type: "int",
          width: 90,
          hidden: true,
          readonly: true,
          require: true,
          align: "left",
        },
        {
          field: "guest_name",
          title: "姓名",
          type: "string",
          width: 90,
          align: "left",
          sortable: true,
        },
        {
          field: "gender",
          title: "性别  1男 0女",
          type: "int",
           bind: { key: "gender", data: [] },
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "ident",
          title: "证件号",
          type: "string",
          width: 180,
          align: "left",
        },
        {
          field: "mobile",
          title: "联系电话",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "idcls",
          title: "证件类型",
          type: "string",
          bind: { key: "certificate_type", data: [] },
          width: 90,
          align: "left",
          hidden: true,
        },
        {
          field: "reasons",
          title: "进雪场事由(旅游/工作)",
          bind: { key: "reasons", data: [] },
          type: "string",
          width: 180,
          align: "left",
        },
        {
          field: "distributorCode",
          title: "分销商编码",
          type: "string",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "user_id",
          title: "用户id",
          type: "int",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "only",
          title: "唯一标识",
          type: "string",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "header_img",
          title: "头像",
          type: "string",
          width: 120,
          align: "left",
          hidden: true,
        },
        
        {
          field: "enterIntoTime",
          title: "入崇时间",
          type: "date",
          width: 180,
          align: "left",
        },
        {
          field: "point_of_departure",
          title: "出发地点",
          type: "string",
          width: 300,
          align: "left",
        },
        {
          field: "house_address",
          title: "目的地",
          type: "string",
          width: 300,
          align: "left",
        },
        {
          field: "is_high_risk",
          title: "近7日是否有高、中、低风险地区旅居史",
          bind: { key: "enables", data: [] },
          type: "int",
          width: 250,
          align: "left",
        },
         {
          field: "highRiskAddress",
          title:
            "近7日是否有高、中、低风险地区旅居史",
          type: "string",
          width: 350,
          align: "left",
        },
        {
          field: "travelHistory",
          title: "近7日旅居史及途径地区",
          type: "string",
          width: 250,
          align: "left",
        },
        {
          field: "tourCode",
          title: "行程码",
          type: "img",
          width: 120,
          align: "left",
        },
        {
          field: "healthCode",
          title: "健康码",
          type: "img",
          width: 120,
          align: "left",
        },
        {
          field: "nuclein",
          title: "48小时内核酸",
          type: "img",
          width: 200,
          align: "left",
        },
        {
          field: "trafficMonitoring",
          title: "进崇交通卡口",
          bind: { key: "Entrance", data: [] },
          type: "string",
          width: 200,
          align: "left",
        },
        {
          field: "car_number",
          title: "车牌号/车次/其他",
          type: "string",
          width: 120,
          align: "left"
        },
        {
          field: "goType",
          title: "入崇交通工具",
          bind: { key: "goType", data: [] },
          type: "string",
          width: 200,
          align: "left",
        },
        {
          field: "is_confirmed_case",
          title: "近期是否与确诊病例或疑似病例有过密切接触1是 0否",
          bind: { key: "enables", data: [] },
          type: "int",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "is_high_risk",
          title: "近期是否去过中高风险地区（以官方公布为主）1是 0否",
          bind: { key: "enables", data: [] },
          type: "int",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "is_inoculate",
          title: "您是否已接种新冠疫苗1是 0否",
          bind: { key: "enables", data: [] },
          type: "int",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "is_intimate_contact",
          title: "是否为密切接触人员的密切接触人员（次密接）1是 0否",
          bind: { key: "enables", data: [] },
          type: "int",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "modifier",
          title: "修改人",
          type: "string",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "modifyDate",
          title: "修改时间",
          type: "datetime",
          width: 120,
          align: "left",
          sortable: true,
          hidden: true,
        },
        {
          field: "modifyID",
          title: "修改人ID",
          type: "int",
          width: 120,
          hidden: true,
          align: "left",
          hidden: true,
        },
        {
          field: "residential_address",
          title: "居住地址",
          type: "string",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "status",
          title: "status",
          type: "int",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "vehicle",
          title: "交通工具",
          type: "string",
          width: 120,
          align: "left",
          hidden: true,
        },
        {
          field: "reserve_starttime",
          title: "预约开始时间",
          type: "datetime",
          width: 180,
          align: "left",
          sortable: true,
        },
        {
          field: "reserve_endtime",
          title: "预约结束时间",
          type: "datetime",
          width: 180,
          align: "left",
          sortable: true,
        },
        {
          field: "createDate",
          title: "创建时间",
          type: "datetime",
          width: 180,
          align: "left",
          sortable: true,
        },
      ],
      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
